import cv2 as cv
import numpy as ny


def calc_hist():
    src_img = cv.imread('..//lena.png')
    cv.imshow('source image', src_img)
    gary_img = cv.cvtColor(src_img, cv.COLOR_BGR2GRAY)
#    hist = cv.calcHist([gary_img], [0], None, 160, [0, 160])
    cv.waitKey(0)


def main():
    calc_hist()


if __name__ == '__main__':
    main()
